/**
 * Created by lenovo-pc on 2017/11/9.
 */
$(function () {
    $('input').iCheck({
        checkboxClass: 'icheckbox_square-blue',
        radioClass: 'iradio_square-blue',
        increaseArea: '20%' // optional
    });

    $("#btn").click(function () {

        //加密
        var encrypt = new JSEncrypt();
        var keyPu = $("#keyPu").val();
        var psd = $("#psd").val();

        encrypt.setPublicKey(keyPu);
        $("#password").val(encrypt.encrypt(psd));

        $("#login").submit();
    })

});
